/**
 * Copyright (C), 2019-2022, 宇信融汇
 * FileName: Student
 * Author:   666
 * Date:     2022/1/14 23:18
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package com.extend;

/**
 * @Classname Student
 * @Description TODO
 * @Date 2022/1/14 23:18
 * @Created by 666
 */
public class Student extends Person {
    private String name;
    private String sex;

    public Student() {
        System.out.println("我是student构造器");
    }

    //super 和this不能存在一个构造器
    public Student(String name) {
        this(name, "男");
    }

    //不能重新父类的静态方法 zx
    @Override
    public void see() {
        System.out.println("子类的see");
    }

    public Student(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        Student s = new Student("张三");
        s.see();
        Person.say();
    }
}
